import http from '@/utils/axios';
const baseURL = '/task';

/* 创建审核任务 */
export const createTask = data => {
  return http (`${baseURL}/createTask`, data, 'post');
};
/* 查询所有任务 */
export const queryTask = data => {
  return http (`${baseURL}/queryTask`, data, 'get');
};

/* 重新审核任务 */
export const reauditTask = data => {
  return http (`${baseURL}/reAudit`, data, 'get');
};
/* 查询审核结果 */
export const queryAuditResult = data => {
  return http (`${baseURL}/queryAuditResult`, data, 'get');
};
//同步创建任务
export const createSyncTask = data => {
  return http (`${baseURL}/createSyncTask`, data, 'post');
};
//删除
export const deleteTask = data => {
  return http (`${baseURL}/removeTask`, data, 'post');
};
//查询任务状态
export const queryTaskStatus = data => {
  return http (`${baseURL}/queryTaskStatus`, data, 'get');
};
/* 查询所有任务 */
export const getPageContent = data => {
  return http (`${baseURL}/getPageContent`, data, 'post');
};
